import api from "@/utils/service";

export const bannerList = (data) => {
  return api({
    url: "/banner/list",
    method: "get",
    params: { ...data },
  });
};
export const bannerStatus = (data) => {
  return api({
    url: `/banner/status?id=${data.id}&status=${data.status}`,
    method: "post"
  });
};
export const bannerEdit = (data) => {
  return api({
    url: `/banner/edit`,
    method: "post",
    data
  });
};

export const qaList = (data) => {
  return api({
    url: "/qa/list",
    method: "get",
    params: { ...data },
  });
};
export const qaStatus = (data) => {
  return api({
    url: `/qa/status?id=${data.id}&status=${data.status}`,
    method: "post"
  });
};
export const qaEdit = (data) => {
  return api({
    url: `/qa/edit`,
    method: "post",
    data
  });
};



